package net.csdn.business.common.yidun;

import lombok.Data;
import org.springframework.util.CollectionUtils;

import java.util.List;

@Data
public class AsyncImageResponse {
    private String dataId;

    private String taskId;

    private Integer suggestion;

    private List<String> values;

    public  String getAsyncResponseValue(){
        if (!CollectionUtils.isEmpty(this.values)){
            StringBuilder sb = new StringBuilder();
            for (String value : this.values){
                sb.append(value);
                sb.append("|");
            }
            return sb.substring(0, sb.length()-1);
        }
        return "";
    }
}
